﻿@model System.Collections.IList
       
       @if ((Model != null) && (Model.Count != 0))
       {
<table>
    <tr>
        <th>
            Name(Add Friend)
        </th>
        <th>
            Institute
        </th>
        <th>Dept.</th>
        <th>Select</th>
    </tr>

@foreach (Parichay.Domain.MemberDetails item in Model)
{
    if (item != null)
    {
    <tr>
    <td>
    
    <div id="FRDiv@(item.Id)"></div>
           @if (item.PicId != 0)
           {<img src="@Url.Action("Avatar", "Media", new { id = item.PicId })" alt="" /><br />} 
  
    </td>
        <td>
            @Html.DisplayFor(modelItem => item.Givennm)
        </td>
        <td> @Html.DisplayFor(modelItem => item.Institute) </td>
        <td><input type="checkbox" name="selectedUserIds" value="@(item.Id)" /></td>
    </tr>
    }
}

</table>
       }
       else
       {
           <p style="font-weight:bold; font-size:larger; color:Red;">User with requested e-mail is not signed up. Please  @Html.ActionLink("Click Here!", "Invite", "Connect", new { type = Parichay.Domain.InviteTypes.Friend }, null) to invite.</p>           
       }
